import { ListColumns } from "@/api/interface/ListColumns";
import { EditColumns } from "@/api/interface/EditColumns";
import { requestSysDictionaryGetOptions } from "@/api/modules/sysDictionary";
	
	
	
	
	
	
	
	


//data.ts 该文件为自动生成，每次生成都会进行覆盖，请不要动该文件
export namespace SysRole {
//字段名称enum
export enum Fields {
	id="id",
	created_at="created_at",
	name="name",
	sort="sort",
	description="description",
	parent_id="parent_id",

}

//[列表]字段配置数据列表
export const listColumnsData: ListColumns = new ListColumns(
{ type: "selection", fixed: "left", width: 70 },
	{ prop: "id", label: "ID",  align: "",isShow: true,tag: true },
	{ prop: "created_at", label: "CreatedAt",  align: "",isShow: true,tag: false },
	{ prop: "name", label: "角色名称",  align: "",isShow: true,tag: false },
	{ prop: "sort", label: "排序",  align: "",isShow: true,tag: false },
	{ prop: "description", label: "角色描述",  align: "",isShow: true,tag: false },
	{ prop: "parent_id", label: "父级ID",  align: "",isShow: true,tag: false },


{prop: "operation", label: "操作", fixed: "right"}
);

//[创建]表单列默认配置
export const CreateColumnsData: EditColumns = new EditColumns(
	{ type: "input", title: "角色名称", col:{ span:12 }, field: "name", effect:{},props: {},validate:[{required: true, message: "必填项：角色名称(字符串类型)" }] },
	{ type: "number", title: "排序", col:{ span:12 }, field: "sort", effect:{},props: {},validate:[{required: true, message: "必填项：排序(数字类型)" }] },
	{ type: "input", title: "角色描述", col:{ span:12 }, field: "description", effect:{},props: {},validate:[{required: true, message: "必填项：角色描述(字符串类型)" }] },
	{ type: "number", title: "父级ID", col:{ span:12 }, field: "parent_id", effect:{},props: {},validate:[] },

);

//[修改]表单列默认配置
export const UpdateColumnsData: EditColumns = new EditColumns(
	{ type: "hidden", title: "ID", col:{ span:12 }, field: "id", effect:{},props: {},validate:[{required: true, message: "必填项：ID(数字类型)" }] },
	{ type: "input", title: "角色名称", col:{ span:12 }, field: "name", effect:{},props: {},validate:[{required: true, message: "必填项：角色名称(字符串类型)" }] },
	{ type: "number", title: "排序", col:{ span:12 }, field: "sort", effect:{},props: {},validate:[{required: true, message: "必填项：排序(数字类型)" }] },
	{ type: "input", title: "角色描述", col:{ span:12 }, field: "description", effect:{},props: {},validate:[{required: true, message: "必填项：角色描述(字符串类型)" }] },
	{ type: "number", title: "父级ID", col:{ span:12 }, field: "parent_id", effect:{},props: {},validate:[] },

);
}

